package com.jye.rseven.user.mapper;

import com.jye.rseven.domain.Address;
import com.jye.rseven.domain.Like;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface LikeMapper {

    //@Param("type")int type,@Param("pId") int pId, status
    int findLikeCountByLike(@Param("like")Like like);

    List<Like> findHotLikeByType(@Param("type")int type, @Param("skip")int skip, @Param("limit")int limit);

    int isLikeByUIdAndPId(@Param("uId")int uId, @Param("pId")int pId);

    int isExist(@Param("like")Like like);

    void updateStatus(@Param("like")Like like);

    void addLike(@Param("like")Like like);

    int isLike(@Param("like")Like like);
}
